package com.zd.springcloud.consumer;

import com.zd.springcloud.exception.MyGlobalExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;


@ImportResource(value={"classpath:META-INF/spring/SpringApplication.xml"})
@SpringBootApplication
@MapperScan(basePackages = {"com.zd.springcloud.consumer.mapper"})
@EnableFeignClients(basePackages = "com.zd.springcloud.config")

public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class,args);
    }
}
